﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back-end.Master" AutoEventWireup="true" CodeBehind="SuaNguoiDung.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.SuaNguoiDung" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
        <script type="text/javascript">
            $(document).ready(function () {
                $("#txtNgaySinh").datepicker({
                    changeMonth: true,
                    changeYear: true,
                    yearRange: '-100:+0'
                });
                $("#txtNgaySinh").datepicker("option", "dateFormat", "dd/mm/yy");
            }); 
    </script>
    <script type="text/javascript">
        function validateForm() {
            var x = document.getElementById('txtEmail').value;
            var atpos = x.indexOf("@");
            var dotpos = x.lastIndexOf(".");
            if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) {
                alert("Not a valid e-mail address");
                return false;
            }
        }
    </script>
    <table border="0" cellspacing="2px" cellpadding="4px" width="100%" class="table">
    	<tr>
    		<td>Tên tài khoản</td>
            <td>
                <asp:TextBox ID="txtTenTaiKhoan" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Mật khẩu</td>
            <td>
                <asp:TextBox ID="txtMatKhau" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Họ và tên</td>
            <td>
                <asp:TextBox ID="txtHoTen" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Ngày sinh</td>
            <td>
                <asp:TextBox ID="txtNgaySinh" runat="Server" CssClass="txt" ClientIDMode="Static"></asp:TextBox>
            </td>
    	</tr>
        <tr>
            <td>Email</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
    	</tr>
        <tr>
            <td>Giới tính</td>
            <td>
                <asp:RadioButtonList ID="rblGioiTinh" runat="Server" RepeatDirection="Horizontal">
                    <asp:ListItem>Nam</asp:ListItem>
                    <asp:ListItem style="margin-left:100px">Nữ</asp:ListItem>
                </asp:RadioButtonList>
            </td>
    	</tr>
        <tr>
            <td>Điện thoại</td>
            <td>
                <asp:TextBox ID="txtDienThoai" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
    	</tr>
        <tr>
            <td>Địa chỉ</td>
            <td>
                <asp:TextBox ID="txtDiaChi" runat="Server" CssClass="txt"></asp:TextBox>
            </td>
    	</tr>
        <tr>
            <td>Ngày đăng kí</td>
            <td>
                <asp:TextBox ID="txtNgayDangKi" runat="Server" CssClass="txt" 
                ReadOnly="true" BackColor="#E5E5E5"></asp:TextBox>
            </td>
    	</tr>
        <tr>
            <td>
                <asp:Label ID="lblThongBao" runat="server" CssClass="lblThongBao"></asp:Label>
            </td>
            <td>
                <asp:Button ID="btnSuaNguoiDung" runat="Server" Text="Sửa"
                OnClick="btnSuaNguoiDung_Click" CssClass="btn"/>&nbsp&nbsp
                <asp:Button ID="btnQuayLai" runat="Server" Text="Quay lại"
                OnClick="btnQuayLai_Click" CssClass="btn"/>
            </td>
        </tr>
    </table>
</asp:Content>
